home *** CD-ROM | disk | FTP | other *** search
-
- ' keep bucket on top
- Declare Sub SetWindowPos Lib "User" (ByVal Wnd%, ByVal WndInsertAfter%, ByVal X%, ByVal Y%, ByVal cx%, ByVal cy%, ByVal Flags%)
- 'SetWindowPos CompressBucket.hWnd, HWND_TOPMOST, 0, 0, 0, 0, &H40
- 'SetWindowPos CompressBucket.hWnd, HWND_NOTOPMOST, 0, 0, 0, 0, &H40
-
- Global Const HWND_TOPMOST = -1
- Global Const HWND_NOTOPMOST = -2
-
-
- ' remove following rem for synchronou operation (see SUB DragDrop1_Drop)
- 'Declare Function GetModuleUsage% Lib "Kernel" (ByVal hModule%)
-
- ' for private ini profiles
- 'Declare Function GetPrivateProfileInt Lib "Kernel" (ByVal lpAppName$, ByVal lpKeyName$, ByVal nDefault As Integer, ByVal lpFileName$) As Integer
- Declare Function GetPrivateProfileString Lib "Kernel" (ByVal lpAppName$, ByVal lpKeyName$, ByVal lpDefault$, ByVal lpReturnedString$, ByVal nSize%, ByVal lpFileName$) As Integer
- 'Declare Function WritePrivateProfileString Lib "Kernel" (ByVal lpAppName$, ByVal lpKeyName$, ByVal lpString$, ByVal lpFileName$) As Integer
-
- Global lpAppName$
- Global lpHelpFile$
- Global lpFileName$
- Global lpString$
- Global lpKeyName$
- Global lpDefault$
- Global lpReturnedString$
- Global nSize%
-
- Global WorkFile As String
- Global CompFile As String
- Global WorkingDir As String
-
- Sub main ()
-
- lpDefault$ = "unknown"
- lpReturnedString$ = Space$(128)
- nSize% = 128
- lpFileName$ = "c:\windows\combuket.ini"
-
- lpAppName$ = "system"
-
- lpKeyName$ = "WorkDir"
- lpReturnedString$ = Space$(128)
- Temp% = GetPrivateProfileString%(lpAppName$, lpKeyName$, lpDefault$, lpReturnedString$, nSize%, lpFileName$)
- TempString$ = Trim$(lpReturnedString$)
- t% = Len(TempString$) - 1
- WorkingDir = Left$(TempString$, t%)
-
- CompressBucket.Show
-
- End Sub
-
-